package org.ainlolcat.aincalc2;

import org.ainlolcat.Variable;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: ain
 * Date: 11/13/11
 * Time: 3:56 PM
 * To change this template use File | Settings | File Templates.
 */
public class Leksemma {
    //dont change this
    public static Integer TYPE_INTEGER = Variable.TYPE_INTEGER;
    public static Integer TYPE_DOUBLE = Variable.TYPE_DOUBLE;
    public static Integer TYPE_STRING = Variable.TYPE_STRING;
    public static Integer TYPE_BOOLEAN = Variable.TYPE_BOOLEAN;

    public static Integer TYPE_VARIABLE = 21;
    public static Integer TYPE_COMMAND = 22;
    public static Integer TYPE_OUT_COMMAND = 23;

    public static Integer TYPE_RBRACKET = 40;  // )
    public static Integer TYPE_LBRACKET = 41;  // (
    public static Integer TYPE_DOT = 42;
    public static Integer TYPE_COMMA = 43;
    public static Integer TYPE_OPERAND = 44;

    Object value;
    int type;
    String name;

    public Leksemma(Object value, int type){
        this.value = value;
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public Object getValue() {
        return value;
    }

    public void setValue(Object value) {
        this.value = value;
    }

    public String toString(){
        return getName() + "=" + getValue();
    }
}
